java.lang.Object
edu.uky.ai.csp.kr.Variable
public class Variable
extends java.lang.Object
A variable can be assigned one of several possible values.
- Author:
- Stephen G. Ware
-
Field Summary
Fields
| Modifier and Type |
Field |
Description |
java.lang.String |
name |
The variable's unique name
|
-
Constructor Summary
Constructors
| Constructor |
Description |
Variable(java.lang.String name) |
Constructs a new variable.
|
-
Method Summary
| Modifier and Type |
Method |
Description |
boolean |
equals(java.lang.Object other) |
|
int |
hashCode() |
|
java.lang.String |
toString() |
|
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
public final java.lang.String name
The variable's unique name
-
Constructor Details
-
public Variable(java.lang.String name)
Constructs a new variable.
- Parameters:
name - the variable's unique name
-
Method Details
-
public boolean equals(java.lang.Object other)
- Overrides:
equals in class java.lang.Object
-
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
-
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object